<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <rich:panelMenu mode="client" topGroupExpandedRightIcon="chevronUp"
                    activeItem="#{main.activeMenu}" style="padding: 2px;"
                    topGroupCollapsedRightIcon="chevronDown" groupExpandedLeftIcon="disc"
                    groupCollapsedLeftIcon="disc" id="systemMenu">
        <c:forEach items="#{accountSession.menus}" var="module">
            <rich:panelMenuGroup label="#{module.label}" expanded="#{true}">
                <c:forEach items="#{module.childMenu}" var="operate">
                    <rich:panelMenuItem label="#{operate.label}" mode="client"
                                        action="#{operate.id}" name="#{operate.id}"
                                        onclick="document.location.href='#{facesContext.externalContext.requestContextPath}#{operate.link}?page=#{operate.id}'"/>
                </c:forEach>
            </rich:panelMenuGroup>
        </c:forEach>
    </rich:panelMenu>
</ui:composition>